<%@ page pageEncoding="utf-8"%>
<%-- 引入JSTL标签库 --%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE HTML>
<html>
<head>
	<title>订单管理</title>
	<meta http-equiv="content-type" content="text/html; charset=UTF-8">
	<script type="text/javascript" src="/resources/js/commons.js"></script>
	<link rel="stylesheet" type="text/css" href="/resources/css/commons.css" />
</head>
<body>
	<h2>订单管理</h2>
<%--	<div id="add-clOrder">--%>
<%--		<a href="sys/order/add" target="rightFrame">新增</a>--%>
<%--	</div>--%>
	<hr/>
	<table border="1">
		<tr>
			<th class="width-40">序号</th>
			<th>编号</th>
			<th>状态</th>
			<th>创建用户</th>
			<th>创建时间</th>
			<th>下单时间</th>
			<th>消单时间</th>
			<th>出单时间</th>
			<th>成单时间</th>
			<th>退单时间</th>
			<th>收货地址</th>
			<th>收货人姓名</th>
			<th>收货手机</th>
			<th>收货备注</th>
			<th>配送员姓名</th>
			<th>配送员电话</th>
			<th class="width-80">操 作</th>
		</tr>

		<!-- 模版数据 -->
	<c:forEach items="${ list }" var="order" varStatus="varStatus">
		<tr>
			<td>${ varStatus.count }</td>
			<td>${ order.id }</td>
			<td>
				<c:if test="${order.status eq 3}">
				<p>已评价<p>
				</c:if>
				<c:if test="${order.status eq 2}">
				<p>已成单<p>
				</c:if>
				<c:if test="${order.status eq 1}">
				<p>已出单<p>
				</c:if>
				<c:if test="${order.status eq 0}">
				<p>已下单<p>
				</c:if>
				<c:if test="${order.status eq -1}">
				<p>已退单<p>
				</c:if>
				<c:if test="${order.status eq -2}">
				<p>已消单<p>
				</c:if>
			</td>
			<td>${ order.userName }</td>
			<td>${ order.createTime }</td>
			<td>${ order.orderTime }</td>
			<td>${ order.cancelTime }</td>
			<td>${ order.startTime }</td>
			<td>${ order.finishTime }</td>
			<td>${ order.backTime }</td>
			<td>${ order.receiverAddress }</td>
			<td>${ order.receiverName }</td>
			<td>${ order.receiverMobile }</td>
			<td>${ order.receiverRemark }</td>
			<td>${ order.deliverName }</td>
			<td>${ order.deliverMobile }</td>
			<td>
				<a href="/sysOrderInfo?id=${ order.id }">操作</a>
			</td>
		</tr>
	</c:forEach>	
		
		
	</table>
</body>
</html>



